<template>
    <fy-card style="text-align: center;width: 100%">
        <template #body>
            <MdCatalog :editorId="props.editorId" :scrollElement="props.scrollElement" />
        </template>
    </fy-card>
</template>

<script setup>
import { onMounted } from 'vue'
import { MdCatalog } from 'md-editor-v3'

import FyCard from '@/components/base/FyCard.vue';

const props = defineProps({
    editorId: {
        type: String,
        require: true
    },
    scrollElement: {
        type: HTMLElement,
        require: true
    }
})

const emits = defineEmits(['updateCatelog']);

onMounted(() => {
    console.log('props::', props.editorId, props.scrollElement);
    emits('updateCatelog');
})

</script>

<style lang="scss" scoped>

</style>